#include <stdio.h>

int main()
{
    int i = 1;
    int j = 0x10000010;
    int k = 0x80000001;
    i = i << 31;
    printf("%x\n", i);
    i = i >> 3;
    printf("%x\n", i);
    printf("--------------测试有符号整型右移---------------\n");
    j = j >> 1;
    printf("%x\n", j);

    printf("------------测试溢出-----------\n");
    k = k << 1;
    printf("%d\n", k);
    return 0;
}